package com.hualan.dao;

import java.util.List;

/*
"pageNum": 1,
             "pageSize": 10,
             "size": 6,
             "startRow": 1,
             "endRow": 6,
             "total": 6,
             "pages": 1,
             "list":[]
 */
public class PageResult {
    private Integer pageNum = 1;
    private Integer pageSize = 10;
    private Integer startRow = 1;
    private Integer endRow = 10;
    private Integer total = 60;
    private Integer pages = 6;
    private List list = null;

    public PageResult() {
    }

    public PageResult(List list) {
        this.list = list;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setStartRow(Integer startRow) {
        this.startRow = startRow;
    }

    public Integer getEndRow() {
        return endRow;
    }

    public void setEndRow(Integer endRow) {
        this.endRow = endRow;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getPages() {
        return pages;
    }

    public void setPages(Integer pages) {
        this.pages = pages;
    }

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }
}
